﻿using System;

namespace CleverDD.Helper.Tool
{
    public static class ExtendMethodTool
    {

        public static string FormatStringLog(this String msg)
        {
            return "[" + DateTime.Now + "] " + msg + Environment.NewLine;
        }


        public static int ToInt32(this String str)
        {
            int.TryParse(str, out int result);
            return result;
        }

    }
}
